﻿<UserControl x:Class="Demos.Common.Util.PopupColorPicker"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cp="clr-namespace:Demos.Common.Util"  
    VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Visibility="Collapsed">
    <Grid Background="#88000000" Width= "Auto" Height="Auto">
        <Grid Width="220" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="32"/>
            </Grid.RowDefinitions>
            <cp:ColorPicker Grid.Row="0" x:Name="_picker" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <Border Grid.Row="1" Height="Auto" Width="Auto" 
                    Background="#FF6B6A6A" 
                    BorderBrush="#FF434343" 
                    BorderThickness="1,1,1,1" 
                    CornerRadius="0,0,8,8" 
                    />

            <StackPanel Grid.Row="1"  HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal" Height="24">
                <Button Width="64" Content="OK" Margin="0,0,5,0" Click="ButtonOk_Click" x:Name="ButtonOk"/>
                <Button Width="64" Content="Cancel" Margin="0,0,10,0" Click="ButtonCancel_Click" x:Name="ButtonCancel"/>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
